

#ifndef CODE_DISPLY_H_
#define CODE_DISPLY_H_

#include "zf_common_headfile.h"

#define key_up              !gpio_get_level(key_up_pin)
#define key_down            !gpio_get_level(key_down_pin)
#define key_select          !gpio_get_level(key_select_pin)
#define key_return          !gpio_get_level(key_return_pin)
#define key_up_pin          (P33_7)
#define key_down_pin        (P33_11)
#define key_select_pin      (P23_1)
#define key_return_pin      (P33_9)
//#define key_mid       gpio_get_level(P33_12)

void select_control(void);
void row_control(void);
void adjust_control(void);
void Menu(void);
void disply_init(void);
void ips114_draw_shizi(uint8 col,uint8 row);
void data_read();
void data_write();

extern uint8 camera_enable;
extern uint8 jiasu_enable;
extern uint8 motor_enable;
extern uint32 tim;
extern float angle_banlance_error;
extern float vertical_banlance_error;
extern float location_banlance_error;
extern float servo_xunji_error;



#endif /* CODE_DISPLY_H_ */
